package alan.mybatisPlusDb.module.order.service.impl;

import alan.mybatisPlusDb.module.order.entity.TOrder;
import alan.mybatisPlusDb.module.order.mapper.OrderDao;
import alan.mybatisPlusDb.module.order.service.ITestTOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 订单表 服务实现类
 * </p>
 *
 * @author alan
 * @since 2021-03-03
 */
@Service
public class TestTOrderServiceImpl implements ITestTOrderService {

    @Autowired
    OrderDao orderDao;

    @Override
    public List<TOrder> getByOrderIdWithShare(Long id) {
        return orderDao.getByOrderIdWithShare(id);
    }

    @Override
    public List<TOrder> getByOrderIdWithMaster(Long id) {
        return orderDao.getByOrderIdWithMaster(id);
    }

    @Override
    public List<TOrder> getByOrderIdAndUserIdWithShare(Long orderId, Long userId) {
        return orderDao.getByOrderIdAndUserIdWithShare(orderId,userId);
    }
}
